package com.designpatterns.builder.concretebuilder;

import com.designpatterns.builder.builder.PersonBuilder;
import com.designpatterns.builder.product.Man;
import com.designpatterns.builder.product.Person;

/**
 * ManBuilder Class Implements PersonBuilder Interface
 * @see PersonBuilder
 *
 * @author Haiqi.Wang
 * @since 2013-5-30下午5:30:27
 */
public class ManBuilder implements PersonBuilder {

	Person person;
	
	public ManBuilder() {
		person = new Man();
	}
	
	@Override
	public void buildHead() {
		person.setHead("建造男人的头");
	}

	@Override
	public void buildBody() {
		person.setBody("建造男人的身体");
	}

	@Override
	public void buildFoot() {
		person.setFoot("建造男人的脚");
	}
	
	public Person buildPerson() {
		return person;
	}

}
